#include<stdio.h>

int main() {
    int n;
    scanf("%d", &n);
    int arr[n][n];
    for (int i = 0; i < n; i++){
        for(int j = 0; j < n; j++){
            scanf("%d", &arr[i][j]); 
        }
    }

    int max = arr[0][0], max_i, max_j;
    for (int i = 0; i < n; i++){
        for(int j = 0; j < n; j++){
            if(arr[i][j]>max){max = arr[i][j]; max_i = i; max_j = j;}
        }
    }
    printf("[%d,%d]=%d", max_i, max_j, max);

}